#!/bin/bash

echo -e "\033[31m 应用版本号：\033[0m"
adb shell dumpsys package $1 | grep versionName
echo -e "\033[31m 应用安装路径：\033[0m"
adb shell dumpsys package $1 | grep codePath
echo -e "\033[31m 应用数据存储路径：\033[0m"
adb shell dumpsys package $1 | grep dataDir
echo -e "\033[31m 应用安装时间：\033[0m"
adb shell dumpsys package $1 | grep firstInstallTime
echo -e "\033[31m 应用uid：\033[0m"
adb shell dumpsys package $1 | grep uid
echo -e "\033[31m 应用编译状态：\033[0m"
adb shell dumpsys package $1 | grep reason
echo -e "\033[31m 应用编译产物大小：\033[0m"
adb shell dumpsys package $1 | grep "odex file size"
echo -e "\033[31m 进程及子进程PID：\033[0m"
adb shell ps -A | grep $1
